package com.uqbar.asteroids.components;


public class TinyAsteroid  extends Asteroid{
	//para instanciacion desde otro asteroide.
	protected TinyAsteroid(double posX, double posY, double width, double height) {
		super(15, 75, width, height);
		this.setX(posX);
		this.setY(posY);
		this.definirAnguloDeSalidaDespuesDeImpacto();
	}
	
	//para instanciacion directa.
	public TinyAsteroid( double width, double height) {
		super(15, 125, width, height);
		this.definirPosicion(width, height);
	}
	
	protected void hasHit() {
		this.getScene().addTinyAsteroid(this);
		this.toOutScreen();
		
	}

}
